// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import 'babel-polyfill'
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import iView from 'iview'
import 'iview/dist/styles/iview.css'
import config from '@/config'
import i18n from '@/locale'
import mock from '@/mock'
import components from './components/index'
import api from './api/index'
import axios from 'axios'
Vue.prototype.$api = api
Vue.prototype.axios = axios
Vue.config.productionTip = false
Vue.use(iView)
Vue.use(components)
axios.defaults.baseURL = 'http://127.0.0.1:8086'
// axios.defaults.headers['Content-Type'] = 'application/json;charset=UTF-8'
/**
 * @description 全局注册应用配置
 */
Vue.prototype.$config = config
/* eslint-disable no-new */
new Vue({
  el: '#app',
  mock,
  router,
  store,
  i18n,
  render: h => h(App)
})
